﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 版权所有 (c) 2022 北京超维景生物科技有限公司 保留所有权利。
 * 
 * 创建者：huangyang
 * 电子邮箱：huangyang@tvscope.cn
 * 创建时间：2023/3/1 19:34:28
 * 版本：V1.0.0
 * 描述：
 *
 * ----------------------------------------------------------------
 * 修改人：
 * 时间：
 * 修改说明：
 *
 * 版本：V1.0.1
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ImageK.Measure;

namespace ImageK.Plugin.Filter
{
    public abstract class BaseMeasurementsFilter : BasePlugInFilter
    {
        public const int AREA = 1, MEAN = 2, STD_DEV = 4, MODE = 8, MIN_MAX = 16,
            CENTROID = 32, CENTER_OF_MASS = 64, PERIMETER = 128, LIMIT = 256, RECT = 512,
            LABELS = 1024, ELLIPSE = 2048, INVERT_Y = 4096, CIRCULARITY = 8192,
            SHAPE_DESCRIPTORS = 8192, FERET = 16384, INTEGRATED_DENSITY = 0x8000,
            MEDIAN = 0x10000, SKEWNESS = 0x20000, KURTOSIS = 0x40000, AREA_FRACTION = 0x80000,
            SLICE = 0x100000, STACK_POSITION = 0x100000, SCIENTIFIC_NOTATION = 0x200000,
            ADD_TO_OVERLAY = 0x400000, NaN_EMPTY_CELLS = 0x800000;

        /** Maximum number of calibration standard (20) */
        public const int MAX_STANDARDS = 20;

        /** All measurement options */
        public const int ALL_STATS = AREA + MEAN + STD_DEV + MODE + MIN_MAX +
                                     CENTROID + CENTER_OF_MASS + PERIMETER + RECT +
                                     ELLIPSE + SHAPE_DESCRIPTORS + FERET + INTEGRATED_DENSITY +
                                     MEDIAN + SKEWNESS + KURTOSIS + AREA_FRACTION;
    }
}
